<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      :root {
        --swiper-width: 0px;
      }
      .box {
        width: 600px;
        height: 400px;
        overflow: hidden;
      }
      .content {
        font-size: 0;
        width: 2400px;
        /* animation: swiper 8s linear 0s infinite; */
      }
      .box img {
        width: 600px;
        height: 400px;
        object-fit: cover;
      }

      .box:hover .content {
        transform: translateX(calc(var(--swiper-width) - 600px));
      }

      @keyframes swiper {
        0% {
          transform: translateX(0);
        }
        100% {
          transform: translateX(-1800px);
        }
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="content">
        <img src="../other/butterfly.png" alt="" />
        <img src="../other/zl.webp" alt="" />
        <img src="../other/butterfly.png" alt="" />
        <img src="../other/zl.webp" alt="" />
      </div>
    </div>
  </body>
</html>
